package cn.udrm.water.base.v1.waterdelivery.dto;

import java.util.List;

import org.mapstruct.Mapper;
import org.mapstruct.Mapping;
import org.mapstruct.Mappings;

import cn.udrm.water.base.v1.waterdelivery.entities.CanalSystemSubSection;

@Mapper(componentModel="spring")
public interface CanalSystemSubSectionDtoMapper {

	@Mappings({
		@Mapping(source="canalSystem.id", target="canalSystemGuid"),
		@Mapping(source="canalSystem.name", target="canalSystemName")
	})
	public CanalSystemSubSectionDto from(CanalSystemSubSection canalSystemSubSection);
	public CanalSystemSubSection fromCanalSystemSubSectionDto(CanalSystemSubSectionDto canalSystemSubSectionDto);
	
	public List<CanalSystemSubSectionDto> from(List<CanalSystemSubSection> canalSystemSubSection);
}
